﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace FundRaising.GUI
{
    public partial class NewEntityMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Request.IsAuthenticated)
                Response.Redirect("~/GUI/Login/Login.aspx");
            FormsIdentity identity = HttpContext.Current.User.Identity as FormsIdentity;
            String username = identity.Name;

            bool userRole = HttpContext.Current.User.IsInRole("user");
        }
    }
}
